package com.atguigu.gulimall.member.fegin;

import com.atguigu.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author majinhui
 * @description
 * @create 2024/7/15 16:51
 **/

/**
 * 这是一个声明式的远程调用
 * Feign Client 默认使用Ribbon作为负载平衡器，在Springcloud2.0以后，Ribbon已被废弃，所以需要引用Spring Cloud LoadBalancer
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {

    @RequestMapping("/coupon/coupon/member/list")
    R memberCoupons();

}
